import logging,yagmail
from HTMLTestRunner import HTMLTestRunner

def send_log():
    logging.basicConfig(level=logging.DEBUG,format='%(message)s %(filename)s %(levelname)s %(lineno)s %(asctime)s',
                        filename='rk10.log',
                        filemode='w+')
def send_email(file):
    email = yagmail.SMTP(user='1847537889@qq.com',password='liavbivsorckhacj',host='smtp.qq.com')
    email.send(to='1847537889@qq.com',subject='日考10',contents=file)
